Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support talking to legacy JSON-RPC 1.0 servers #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

drdaeman
Copy link

I've needed to talk to legacy JSON-RPC 1.0 server and found that there's no library on PyPi that could readily do it.

Here are quick fixes, which I hope could be merged. Error handling modifications should not affect working with any compliant 1.1+ server, but only more eagerly accept possible 1.0 oddities.

Thanks.

This should support any types of error responses, including:

- `{..., "error": {"code": -42, "message": "spam"}}`,
- `{..., "error": {"reason": "spam"}}`,
- `{..., "error": {"what_happened": "spam"}}`,
- or even `{..., "error": "spam"}}`
@agronholm
Copy link

Is the author dead? No comments for 4 months?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants